package com.cn.demo4.mapper;

import com.cn.demo4.entity.CompanyEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CompanyMapper {
    List<CompanyEntity> findAll(CompanyEntity companyEntity);

    CompanyEntity findById(Integer id);

    int update(CompanyEntity companyEntity);

    int add(CompanyEntity companyEntity);

    int del(Integer id);

    int getCount(CompanyEntity companyEntity);

    CompanyEntity getCompanyModelForHome();
}
